package com.sfac.springBoot.module.test.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.sfac.springBoot.module.common.vo.Result;
import com.sfac.springBoot.module.common.vo.Search;
import com.sfac.springBoot.module.test.dao.CityDao;
import com.sfac.springBoot.module.test.pojo.City;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * personal demo
 **/

public interface CityService {

    Result<City> insertCity(City city);

    Result<City> updateCity(City city);

    Result<Object>deleteCity(int Id);

    Result<City> selectCityById(int id);

    PageInfo<City> getCitiesBySearch(Search search);

    Page<City> getCitiesBySearch2(Search search);

    List<City> getCitiesByCountryId(Integer id);


}
